package com.example.micro.mysql.deadlock.service.impl;

import com.example.micro.mysql.deadlock.service.InjectionAService;
import com.example.micro.mysql.deadlock.service.InjectionBService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class InjectionAServiceImpl implements InjectionAService {

    @Resource
    private InjectionBService injectionBService;

    @Override
    @Async
    public void print() {
        System.out.println("this is A");
//        injectionBService.print();
    }
}
